#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
装饰器
"""
from src import account


def auth(func):
    def inner(*args, **kwargs):
        if account.CURRENT_USER:
            return func(*args, **kwargs)
        return False

    return inner
